<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/blog/lib/pace/pace-theme-pace-theme-minimal.min.css">
  <script src="/blog/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"zyzfxj.gitee.io","root":"/blog/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="一、准备工作本博主以亲身体验告诉各位关注本博客的各位，hexo的搭建真的非常非常简单容易，小白也可以一步一步的跟着步骤安装hexo博客，而且现在搭建博客可以不用再租自己的服务器了，可以通过类似本博主用的gitee进行免费的博客搭建，有没有很心动？心动不如行动，下面本博主会将所有步骤一步一步地详细的写下来，其中踩的坑也会写上，要是各位在安装博客出现问题的，欢迎前来提问，本博主看到也会给到相应的帮助的">
<meta property="og:type" content="article">
<meta property="og:title" content="【基础篇】hexo个人博客搭建（适合小白）">
<meta property="og:url" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/index.html">
<meta property="og:site_name" content="猪飞小贱">
<meta property="og:description" content="一、准备工作本博主以亲身体验告诉各位关注本博客的各位，hexo的搭建真的非常非常简单容易，小白也可以一步一步的跟着步骤安装hexo博客，而且现在搭建博客可以不用再租自己的服务器了，可以通过类似本博主用的gitee进行免费的博客搭建，有没有很心动？心动不如行动，下面本博主会将所有步骤一步一步地详细的写下来，其中踩的坑也会写上，要是各位在安装博客出现问题的，欢迎前来提问，本博主看到也会给到相应的帮助的">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/nodeversion.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/npmversion.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/gitbash.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/hexostart.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/hexoindex.webp">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/giteecreate.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/giteeclone.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/giteepage1.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/giteepage2.png">
<meta property="og:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/configurl.png">
<meta property="article:published_time" content="2020-11-28T16:59:23.000Z">
<meta property="article:modified_time" content="2020-11-28T19:09:54.112Z">
<meta property="article:author" content="猪飞小贱">
<meta property="article:tag" content="hexo">
<meta property="article:tag" content="gitee">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/nodeversion.png">

<link rel="canonical" href="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>【基础篇】hexo个人博客搭建（适合小白） | 猪飞小贱</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/blog/atom.xml" title="猪飞小贱" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">猪飞小贱</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/blog/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://zyzfxj.gitee.io/blog/2020/11/29/hexo-study/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="http://qkht9s0tz.hn-bkt.clouddn.com/s-1.jpg">
      <meta itemprop="name" content="猪飞小贱">
      <meta itemprop="description" content="猪飞小贱的博客">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="猪飞小贱">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          【基础篇】hexo个人博客搭建（适合小白）
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-11-29 00:59:23 / 修改时间：03:09:54" itemprop="dateCreated datePublished" datetime="2020-11-29T00:59:23+08:00">2020-11-29</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/%E5%8D%9A%E5%AE%A2/" itemprop="url" rel="index"><span itemprop="name">博客</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/blog/2020/11/29/hexo-study/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/blog/2020/11/29/hexo-study/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h1 id="一、准备工作"><a href="#一、准备工作" class="headerlink" title="一、准备工作"></a>一、准备工作</h1><p>本博主以亲身体验告诉各位关注本博客的各位，hexo的搭建真的非常非常简单容易，小白也可以一步一步的跟着步骤安装hexo博客，而且现在搭建博客可以不用再租自己的服务器了，可以通过类似本博主用的gitee进行免费的博客搭建，有没有很心动？心动不如行动，下面本博主会将所有步骤一步一步地详细的写下来，其中踩的坑也会写上，要是各位在安装博客出现问题的，欢迎前来提问，本博主看到也会给到相应的帮助的。好了，废话不多说，进入正题。</p>
<p><strong><em>注意：本文是在windows环境上进行搭建的，博主用的环境是win10专业版的系统！</em></strong></p>
<a id="more"></a>

<h2 id="1、node-js"><a href="#1、node-js" class="headerlink" title="1、node.js"></a>1、node.js</h2><p>进入<a target="_blank" rel="noopener" href="http://nodejs.cn/download/">node.js官网</a>下载，一般下载当前最热门的版本就好了，下载到相应地址，然后傻瓜式无限下一步安装，注意看到安装的位置，其它就没啥要注意的了，就直接安装就好。博主是一次性就安装上去的，检查是否安装上，打开命令窗口（小白看这里：可以使用win键（电脑上windows标志的那个键）+R键，输入cmd，运行）输入</p>
<blockquote>
<ul>
<li>node -v</li>
</ul>
</blockquote>
<p>出现如下图：<br><img src="../hexo-study/nodeversion.png"></p>
<blockquote>
<ul>
<li>npm -v</li>
</ul>
</blockquote>
<p>出现如下图：<br><img src="../hexo-study/npmversion.png"></p>
<p>到此证明node.js已经安装完毕</p>
<h2 id="2、git"><a href="#2、git" class="headerlink" title="2、git"></a>2、git</h2><p>进入<a target="_blank" rel="noopener" href="https://git-scm.com/download/">git官网</a>下载，直接下载最新版，同样下载最新版，到相应地址，然后傻瓜式安装，安装完直接在电脑中任意一处空白地方点击鼠标右键出现以下情况：<br><img src="../hexo-study/gitbash.png"><br>那么恭喜你，已经完成了hexo博客的基础的准备工作了。</p>
<h1 id="二、hexo的下载及安装"><a href="#二、hexo的下载及安装" class="headerlink" title="二、hexo的下载及安装"></a>二、hexo的下载及安装</h1><p>在下载之前，先在自己想要安装的盘下新建一个文件夹用于存放hexo博客文件的文件夹，博主这边是在D盘下新建的blog文件夹，然后可以用两种方法安装，安装方式一样，一种是在命令窗口中，将执行命令的地址指向刚创建好的文件中，或者在刚刚创建的文件夹中右击点击Git Bash，然后在窗口中输入：</p>
<blockquote>
<ul>
<li>npm install -g hexo</li>
</ul>
</blockquote>
<p>然后就是静静等待hexo自动下载，当这边下载完，先别急着到文件夹中看，接着直接运行以下命令：</p>
<blockquote>
<ul>
<li>hexo init</li>
<li>npm install</li>
</ul>
</blockquote>
<p>然后就可以到刚刚的那个博客的文件夹中看到一堆文件了，这样就已经下载好了，马上我们就可以运行了，是不是有点小激动了？</p>
<p>接着运行以下命令(编译)</p>
<blockquote>
<ul>
<li>hexo g</li>
</ul>
</blockquote>
<p>然后运行服务</p>
<blockquote>
<ul>
<li>hexo s</li>
</ul>
</blockquote>
<p>运行完这条命令你就会在命令窗口中看到以下几行代码：<br><img src="../hexo-study/hexostart.png"></p>
<p>这时，你就可以打开你的浏览器访问<a target="_blank" rel="noopener" href="http://localhost:4000/">localhost:4000</a>，以下就是你的博客了。<br><img src="../hexo-study/hexoindex.webp"></p>
<hr>
<p><strong>这是分割线，现在才只是在你的电脑上本地运行起来，要是你只想要这样的话，那你就可以不用再往下看了，下面就是将hexo部署到gitee码云上了</strong></p>
<h1 id="三、部署gitee"><a href="#三、部署gitee" class="headerlink" title="三、部署gitee"></a>三、部署gitee</h1><h2 id="1、创建好gitee的仓库"><a href="#1、创建好gitee的仓库" class="headerlink" title="1、创建好gitee的仓库"></a>1、创建好gitee的仓库</h2><p>先到<a target="_blank" rel="noopener" href="https://gitee.com/">gitee官网</a>进行账号注册（声明一下，码云相当于国内的github，所以才会选择使用gitee，并且基础使用都是免费的），注册完自己的账号之后就是创建仓库了。<br>创建一个公开的仓库用于存放博客文件的仓库：<br><img src="../hexo-study/giteecreate.png"><br>这里面我已经创建过这个名字的仓库了所以标红了，你也可以按照我的创建，也可以自己命名创建。<br><strong>一定要注意的是，要选择公开的，并且在下面选择使用Readme文件初始化这个仓库</strong></p>
<h2 id="2、配置hexo发布地址"><a href="#2、配置hexo发布地址" class="headerlink" title="2、配置hexo发布地址"></a>2、配置hexo发布地址</h2><p>找到刚刚你博客的安装地址，就能找到一个_config.yml文件，然后右击打开（如果你下载过vscode或者nodepade之类的编辑工具的话就用编辑工具打开，如果没有就使用记事本打开也是可以的），拉到最后能看到deploy属性，配置格式如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  type: &#39;git&#39;</span><br><span class="line">  repo: &lt;你的gitee公开仓库克隆地址&gt;</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure>
<p>其中你的gitee公开仓库克隆地址，你可以到你刚刚创建的gitee仓库里找到，具体如下：<br><img src="../hexo-study/giteeclone.png"><br>点击这边的复制，然后复制到上面格式中的尖括号中，编辑完的_config.yml记得按ctrl+s快捷键保存，然后关闭。</p>
<p>在发布前先运行以下命令（安装自动发布插件）：</p>
<blockquote>
<ul>
<li>npm install hexo-deployer-git –save</li>
</ul>
</blockquote>
<p>然后运行(直接清理，编译发布一起)：</p>
<blockquote>
<ul>
<li>hexo clean &amp; hexo g &amp; hexo d</li>
</ul>
</blockquote>
<p>如果你是第一次做发布的话，是需要你填写你gitee的账号和密码的。</p>
<h2 id="3、设置公开的博客访问地址"><a href="#3、设置公开的博客访问地址" class="headerlink" title="3、设置公开的博客访问地址"></a>3、设置公开的博客访问地址</h2><p>你以为上面发布完了就万事大吉了，你还需要将你的仓库设置服务，但是设置服务之前你需要先进行认证，具体操作如下：<br><img src="../hexo-study/giteepage1.png"><br>进入服务，然后你会看到下面的内容<br><img src="../hexo-study/giteepage2.png"><br>如果你这边更新是灰色的，就是说明你没有进行认证，需要你先去认证以下，在这个页面中是有提示的，你按照提示的认证一下即可。</p>
<p>如果你这边也已经设置完了，那么才要真的要恭喜你，已经部署完了，之后你可以在服务这边看到有个网站地址就是你博客的访问地址了，可以去访问看看。</p>
<h2 id="踩坑"><a href="#踩坑" class="headerlink" title="踩坑"></a>踩坑</h2><p>你以为这就结束了？如果你发现你博客没有啥样式就只有文字啥的，恭喜你跟我一样踩坑了，但是踩坑不用怕，我们是可以解决滴，如果你发现你的样式没有加上去，请按照我下面的做。<br>找到你博客的配置文件就是那个_config.yml文件，打开，然后找到以下配置项：<br><img src="../hexo-study/configurl.png"><br>这边配置的格式：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">url: &lt;你gitee的服务的那个网站地址&gt;</span><br><span class="line">root: &#x2F;&lt;你的文件地址&gt;</span><br></pre></td></tr></table></figure>
<p>保存好，再运行</p>
<blockquote>
<ul>
<li>hexo clean &amp; hexo g &amp; hexo d</li>
</ul>
</blockquote>
<p>将博客再发布一次，静静等待发布完，发布完了就用之前的那个网站地址访问看看，要是样式还是没加上去就去gitee的gitee page中点击以下更新，重新部署以下服务，就能将样式加上去了。</p>
<p>-》本篇结束，下一篇是讲hexo的皮肤更改及各种样式添加，敬请期待。</p>

    </div>

    
    
    
        

  <div class="followme">
    <p>欢迎关注我的其它发布渠道</p>

    <div class="social-list">

        <div class="social-item">
          <a target="_blank" class="social-link" href="/atom.xml">
            <span class="icon">
              <i class="fa fa-rss"></i>
            </span>

            <span class="label">RSS</span>
          </a>
        </div>
    </div>
  </div>


      <footer class="post-footer">
          
          <div class="post-tags">
              <a href="/blog/tags/hexo/" rel="tag"><i class="fa fa-tag"></i> hexo</a>
              <a href="/blog/tags/gitee/" rel="tag"><i class="fa fa-tag"></i> gitee</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2020/11/28/hello-world/" rel="prev" title="Hello World">
      <i class="fa fa-chevron-left"></i> Hello World
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2020/11/30/hexo-study2/" rel="next" title="【进阶篇】hexo个人博客主题及各项配置（NEXT主题）">
      【进阶篇】hexo个人博客主题及各项配置（NEXT主题） <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%B8%80%E3%80%81%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C"><span class="nav-number">1.</span> <span class="nav-text">一、准备工作</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1%E3%80%81node-js"><span class="nav-number">1.1.</span> <span class="nav-text">1、node.js</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2%E3%80%81git"><span class="nav-number">1.2.</span> <span class="nav-text">2、git</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%BA%8C%E3%80%81hexo%E7%9A%84%E4%B8%8B%E8%BD%BD%E5%8F%8A%E5%AE%89%E8%A3%85"><span class="nav-number">2.</span> <span class="nav-text">二、hexo的下载及安装</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%E4%B8%89%E3%80%81%E9%83%A8%E7%BD%B2gitee"><span class="nav-number">3.</span> <span class="nav-text">三、部署gitee</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1%E3%80%81%E5%88%9B%E5%BB%BA%E5%A5%BDgitee%E7%9A%84%E4%BB%93%E5%BA%93"><span class="nav-number">3.1.</span> <span class="nav-text">1、创建好gitee的仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2%E3%80%81%E9%85%8D%E7%BD%AEhexo%E5%8F%91%E5%B8%83%E5%9C%B0%E5%9D%80"><span class="nav-number">3.2.</span> <span class="nav-text">2、配置hexo发布地址</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3%E3%80%81%E8%AE%BE%E7%BD%AE%E5%85%AC%E5%BC%80%E7%9A%84%E5%8D%9A%E5%AE%A2%E8%AE%BF%E9%97%AE%E5%9C%B0%E5%9D%80"><span class="nav-number">3.3.</span> <span class="nav-text">3、设置公开的博客访问地址</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%B8%A9%E5%9D%91"><span class="nav-number">3.4.</span> <span class="nav-text">踩坑</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="猪飞小贱"
      src="http://qkht9s0tz.hn-bkt.clouddn.com/s-1.jpg">
  <p class="site-author-name" itemprop="name">猪飞小贱</p>
  <div class="site-description" itemprop="description">猪飞小贱的博客</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">4</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="heartbeat"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">ZFXJ@HD</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>


    <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>


        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  




  
<script src="/blog/js/local-search.js"></script>













  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('https://cdn.jsdelivr.net/npm/valine@1/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'vuxUu0cgMPU5p56UQ7uTfMEL-9Nh9j0Va',
      appKey     : 'CPl8NUrvFonyi6AjPp9zeVeJ',
      placeholder: "~\\(>-<)/~来呀!快活呀，反正有大把事光.....",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : 'zh-cn' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
